package st.business.tepth.business.goodsreceive.entity;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;

import st.business.tepth.business.bean.MaterialWaitApplyBean;
import st.business.tepth.business.goodsreceive.GoodsReceiveAdapter;

/**
 * @author zhangyu
 * @date 2019/2/23
 */
public class GoodsReceiveLevel0 extends AbstractExpandableItem<GoodsReceiveLevel1> implements MultiItemEntity {
    private final MaterialWaitApplyBean mGoodsOrderBean;
    private boolean isCheck;

    public GoodsReceiveLevel0(MaterialWaitApplyBean goodsOrderBean, boolean isCheck) {
        mGoodsOrderBean = goodsOrderBean;
        this.isCheck = isCheck;
    }

    public MaterialWaitApplyBean getGoodsOrderBean() {
        return mGoodsOrderBean;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    @Override
    public int getLevel() {
        return 0;
    }

    @Override
    public int getItemType() {
        return GoodsReceiveAdapter.TYPE_LEVEL_0;
    }
}
